﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// OrderData
	/// </summary>
    [Serializable]
	public class OrderData
	{
		/// <summary>
		/// OrderDataID
        /// </summary>
        [FieldName("OrderDataID")]		
		public int OrderDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderNo
        /// </summary>
        [FieldName("OrderNo")]		
		public string OrderNo
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderState
        /// </summary>
        [FieldName("OrderState")]		
		public int OrderState
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderStateTime
        /// </summary>
        [FieldName("OrderStateTime")]		
		public DateTime OrderStateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// PayState
        /// </summary>
        [FieldName("PayState")]		
		public int PayState
		{
			get;
			set;
		}
        
		/// <summary>
		/// PayStateTime
        /// </summary>
        [FieldName("PayStateTime")]		
		public DateTime PayStateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// ExpressState
        /// </summary>
        [FieldName("ExpressState")]		
		public int ExpressState
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderValidTime
        /// </summary>
        [FieldName("OrderValidTime")]		
		public DateTime OrderValidTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderType
        /// </summary>
        [FieldName("OrderType")]		
		public int OrderType
		{
			get;
			set;
		}
        
		/// <summary>
		/// BranchDataID
        /// </summary>
        [FieldName("BranchDataID")]		
		public int BranchDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// OwnerDataID
        /// </summary>
        [FieldName("OwnerDataID")]		
		public int OwnerDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProjectDataID
        /// </summary>
        [FieldName("ProjectDataID")]		
		public int ProjectDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// PriceMarketTotal
        /// </summary>
        [FieldName("PriceMarketTotal")]		
		public decimal PriceMarketTotal
		{
			get;
			set;
		}
        
		/// <summary>
		/// PriceCostTotal
        /// </summary>
        [FieldName("PriceCostTotal")]		
		public decimal PriceCostTotal
		{
			get;
			set;
		}
        
		/// <summary>
		/// PriceSellTotal
        /// </summary>
        [FieldName("PriceSellTotal")]		
		public decimal PriceSellTotal
		{
			get;
			set;
		}
        
		/// <summary>
		/// CoinDeductTotal
        /// </summary>
        [FieldName("CoinDeductTotal")]		
		public int CoinDeductTotal
		{
			get;
			set;
		}
        
		/// <summary>
		/// PricePayTotal
        /// </summary>
        [FieldName("PricePayTotal")]		
		public decimal PricePayTotal
		{
			get;
			set;
		}
        
		/// <summary>
		/// OrderInfo
        /// </summary>
        [FieldName("OrderInfo")]		
		public string OrderInfo
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReceiveName
        /// </summary>
        [FieldName("ReceiveName")]		
		public string ReceiveName
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReceivePhone
        /// </summary>
        [FieldName("ReceivePhone")]		
		public string ReceivePhone
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReceiveCityID
        /// </summary>
        [FieldName("ReceiveCityID")]		
		public int ReceiveCityID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ReceiveAddress
        /// </summary>
        [FieldName("ReceiveAddress")]		
		public string ReceiveAddress
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditFullName
        /// </summary>
        [FieldName("EditFullName")]		
		public string EditFullName
		{
			get;
			set;
		}
        
        public OrderData Clone()
        {
            return (OrderData)this.MemberwiseClone();
        }
        
        public OrderData()
        {
            OrderNo = string.Empty;
            OrderStateTime = ConvertHelper.DefaultDate;
            PayStateTime = ConvertHelper.DefaultDate;
            OrderValidTime = ConvertHelper.DefaultDate;
            OrderInfo = string.Empty;
            ReceiveName = string.Empty;
            ReceivePhone = string.Empty;
            ReceiveAddress = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
            EditDateTime = ConvertHelper.DefaultDate;
            EditFullName = string.Empty;
        }
	}
}
